-- GENERATED SPELL FOR [Black Wyrmkin] --


function spell0_7041(pUnit, Event) --@Fire Nova,Self--
pUnit:FullCastSpellOnTarget(11969,pUnit)
pUnit:RegisterEvent('Sorts_7041', 2000, 1)
end

function spell1_7041(pUnit, Event) --@Fireball,n/a--
pUnit:FullCastSpellOnTarget(9053,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7041', 3000, 1)
end

function Sorts_7041(pUnit, Event)
local choix_sorts_7041 = math.random(0, 1)
if choix_sorts_7041 == 0 then
pUnit:RegisterEvent('spell0_7041', 1, 1)
end
if choix_sorts_7041 == 1 then
pUnit:RegisterEvent('spell1_7041', 1, 1)
end
end

function mob7041_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_7041', math.random(1500, 3000), 1)
end

function mob7041_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7041_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7041_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(7041, 1, 'mob7041_Action')
RegisterUnitEvent(7041, 2, 'mob7041_Leave')
RegisterUnitEvent(7041, 3, 'mob7041_Kill')
RegisterUnitEvent(7041, 4, 'mob7041_Die')
